﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Icst.Leaflike.Data;


namespace Icst.Leaflike.Web.gather
{
    public partial class pdf : pagegather
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                txtName.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            string export = Gathering.Instance.Export(rblTypes.SelectedValue, rblOptimize.SelectedValue);
            if (chkPreview.Checked)
            {
                PageExtension.Redirect(this, export);
            }
            else
                PageExtension.Redirect(this, "gather_default.htm?sort=1" + "&uid=" + this.uid);
        }
    }
}
